<template>
  <div class="common-layout">
    <el-container>
      <el-header>
        <div class="header">
          用户信息：{{userInfo.username}}
        </div>
      </el-header>
      <el-container>
        <el-aside width="200px">Aside</el-aside>
        <el-main>Main</el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
const userInfo = ref({});
function show(){
  console.log("index.vue--->"+localStorage.getItem('user'))
  userInfo.value = JSON.parse(localStorage.getItem('user'))
  console.log(userInfo.value)
}
show()
</script>

<style scoped>

</style>